#!/bin/bash
# array variable to function test
# 
testit (){
    local newarray
    newarray=($(echo "$@"))
    echo "The new array value is: ${newarray[*]}"
}

myarray=(0 1 2 3 4 5)
echo "The original array is ${myarray[*]}"
testit ${myarray[*]}

